﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;

namespace Abp.Application.Transactions
{
    /// <summary>
    /// 事物特性
    /// </summary>
    public class TransactionAttribute : Attribute
    {
        /// <summary>
        /// 超时时间
        /// </summary>
        public TimeSpan ScopeTimeout { get; set; }

        public TransactionAttribute()
        {
            this.ScopeTimeout = TimeSpan.FromMinutes(10);
        }

    }
}
